home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 August: Tool Chest / Dev.CD Aug 00 TC Disk 2.toast / pc / sample code / quicktime / capturing / simplevideoout / simplevideoout_prefix.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-06-23  |  4.0 KB  |  154 lines

  1. /*  Metrowerks Standard Library */
  2.  
  3. /*  $Date: 1999/08/09 20:08:58 $ 
  4.  *  $Revision: 1.9 $ 
  5.  *  $NoKeywords: $ 
  6.  *
  7.  *        Copyright © 1995-1999 Metrowerks, Inc.
  8.  *        All rights reserved.
  9.  */
  10.  
  11. /*
  12.  *    ansi_prefix.mac.h
  13.  */
  14.  
  15. #ifndef __ansi_prefix__
  16. #define __ansi_prefix__
  17.  
  18. #include <os_enum.h>
  19. #define     __dest_os        __mac_os
  20.  
  21. #define __MSL_LONGLONG_SUPPORT__
  22. /* #define _MSL_MALLOC_0_RETURNS_NON_NULL */
  23. /* #define _MSL_PRO4_MALLOC */
  24.  
  25. /* hh 980217 
  26.  
  27.     __ANSI_OVERLOAD__ controls whether or not the prototypes in the C++ standard
  28.     section 26.5 get added to <cmath> and <math.h> or not.  If __ANSI_OVERLOAD__
  29.     is defined, and a C++ compiler is used, then these functions are available,
  30.     otherwise not.
  31.     
  32.     There is one exception to the above rule:  double abs(double); is available
  33.     in <cmath> and <math.h> if the C++ compiler is used.  __ANSI_OVERLOAD__ has
  34.     no effect on the availability of this one function.
  35.  
  36.     There is no need to recompile the C or C++ libs when this switch is flipped.
  37.  
  38.     If _MSL_INTEGRAL_MATH is defined then in addition to the prototypes added by
  39.     __ANSI_OVERLOAD__, there are also non-standard integral versions of these
  40.     prototypes added as well.  This is to allow client code to put integral arguments
  41.     into math functions, and avoid ambiguous call errors.
  42. */
  43. /* hh 990201 turned on */
  44. #define __ANSI_OVERLOAD__  
  45. #define _MSL_INTEGRAL_MATH
  46. /*
  47. For MacHeaders
  48. */
  49.  
  50. /*if you are using PP or custom precompiled headers please 
  51.     1) set MSL_USE_PRECOMPILED_HEADERS to 0
  52.     2) make sure OLDROUTINENAMES, OLDROUTINELOCATIONS are set to false before 
  53.        MacHeaders is precompiled or parts of Universal Headers are included
  54. */
  55.  
  56. /* hh 980727 */
  57.  
  58. #ifndef OLDROUTINENAMES
  59.     #define OLDROUTINENAMES 0
  60. #endif
  61.  
  62. #ifndef OLDROUTINELOCATIONS
  63.     #define OLDROUTINELOCATIONS 0
  64. #endif
  65. /*
  66. #define _MWMT 1
  67. */
  68. #ifndef    MSL_USE_PRECOMPILED_HEADERS 
  69. #define MSL_USE_PRECOMPILED_HEADERS    0    /*Set to have ansi_prefix include some form of MacHeaders*/
  70. #endif 
  71.  
  72. #if (MSL_USE_PRECOMPILED_HEADERS == 1 )
  73.     #ifndef USE_PRECOMPILED_MAC_HEADERS
  74.         #define    USE_PRECOMPILED_MAC_HEADERS    1  /*Set to 0 if you don't want to use precompiled MacHeaders*/
  75.     #endif
  76.  
  77.     #if (USE_PRECOMPILED_MAC_HEADERS != 1 )
  78.         #include     <MacHeaders.c>
  79.     #else
  80.         #ifdef __cplusplus
  81.             #if __POWERPC__
  82.                 #include <MacHeadersPPC++>
  83.             #elif __CFM68K__
  84.                 #include <MacHeadersCFM68K++>
  85.             #else
  86.                 #include <MacHeaders68K++>
  87.             #endif
  88.         #else
  89.             #if __POWERPC__
  90.                 #include <MacHeadersPPC>
  91.             #elif __CFM68K__
  92.                 #include <MacHeadersCFM68K>
  93.             #else
  94.                 #include <MacHeaders68K>
  95.             #endif
  96.         #endif
  97.     #endif
  98.  
  99. #endif /*MSL_USE_PRECOMPILED_HEADERS*/
  100. /*
  101. For ZoneRanger
  102.     If you want malloc to register its pools with ZoneRanger, add ZoneRanger.c
  103.     to your project.  ZoneRanger support is no longer part of MSL.
  104. */
  105. /*
  106. For DebugNew
  107.  
  108. NB: this assumes that the only placement versions of new are in the following files:
  109.     mmemory.h, new.h, and bstring.h. DebugNew does not currently work with the 
  110.     placement versions of operator new
  111.  
  112. 1)     add DebugNew.cp to your project
  113.  
  114. 2)     add this to New.cp
  115.     #ifdef DebugNew_H
  116.     #undef new
  117.     #endif
  118.  
  119. 3) to zap memory, add gDebugNewFlags |= dnDontFreeBlocks; right before your problem code
  120.  
  121. 4) put DebugNewForgetLeaks() underneath this
  122.  
  123. 5) put DebugNewReportLeaks() at the end of your problem code
  124.  
  125. 6) uncomment lines below
  126.  
  127. 7) run
  128. */
  129.  
  130. /*to activate debug new, uncomment the following lines*/
  131. /*
  132. #define DEBUG_NEW    2
  133. #include <DebugNew.h>
  134. #ifdef DebugNew_H
  135.     #define new NEW
  136. #endif
  137. */
  138.  
  139. #endif /*    __ansi_prefix__      */
  140.  
  141. /*#pragma once on*/
  142. /* Switching this pragma on, can improve compilation speed but it may cause problems with the
  143.    use of assert.h, which generally depends upon being actually included more than once during
  144.    compilation. */
  145.  
  146. /* Change record
  147. mm 970110  Changed wrapper for long long support
  148. hh 980727  Wrapped OLDROUTINENAMES and OLDROUTINELOCATIONS to prevent changing previously defined values.
  149. mf 980811  commented out #define __ANSI_OVERLOAD__ 
  150. hh 990201 turned __ANSI_OVERLOAD__ on because we now have foo(int) support
  151. hh 990227 Added flag for malloc - ZoneRanger cooperation
  152. */
  153.  
  154.